
This is a list of supported functions in the XC800-SDCC library.
The list is sorted according to the library header files to which they belong.
Header files are in ~sdcc/include/*.h.
Except where denoted with MACRO these are implemented as functions.
INTERNAL function calls are generated by the compiler to implement IEEE floating point, etc.  
They are not normally called directly from user code.


ctype.h
/*---------------------------------------------------------------
isalnum - character classification - #include <ctype.h>  
	char isalnum (unsigned char c); MACRO
	Return true if c is an ASCII letter or digit
	'a-z','A-Z', '0'-'9' otherwise return false.

isalpha - character classification - #include <ctype.h>  
	char isalpha (unsigned char c); MACRO
	Return true if c is an ASCII letter
	'a-z','A-Z' otherwise return false.

isascii - character classification - #include <ctype.h> 
	char isascii (unsigned char c);
	Return true if c is an 7-bit ASCII character
	0x00-0x7F otherwise return false.

iscntrl - character classification - #include <ctype.h>  
	char iscntrl (unsigned char c);
	Return true if c is an ASCII control character
	0x00-0x1F or 0x7F (DEL) otherwise return false.

isdigit - character classification - #include <ctype.h>  
	char isdigit (unsigned char c);
	Return true if c is an ASCII digit '0'-'9'
	otherwise return false.

isgraph - character classification - #include <ctype.h>  
	char isgraph (unsigned char c);
	Return true is c is an ASCII printable graphic
	excluding space 0x21-0x7E otherwise return false.

islower - character classification - #include <ctype.h>  
	char islower (unsigned char c);
	Return true if c is an ASCII lower case letter
	'a'-'z' otherwise return false.

isprint - character classification - #include <ctype.h>  
	char isprint (unsigned char c);
	Return true is c is an ASCII printable graphic
	including space 0x20-0x7E otherwise return false.

ispunct - character classification - #include <ctype.h>  
	char ispunct (unsigned char c);
	Return true if c is ASCII punctuation (isgraph but not isalnum)
	otherwise return false.

isspace - character classification - #include <ctype.h>  
	char isspace (unsigned char c);
	Return true if c is an ASCII white space character
	space, tab, carriage return, newline or vertical tab
	0x09-0x0D, 0x20 otherwise return false.

isupper - character classification - #include <ctype.h>  
	char isupper (unsigned char c);
	Return true if c is an ASCII upper case letter
	'A'-'Z' otherwise return false.

isxdigit - character classification - #include <ctype.h>  
	char isxdigit (unsigned char c);
	Return true if c is an ASCII hexidecimal digit
	'0-9','a-f','A-F' otherwise return false.

toascii - character classification - #include <ctype.h>  
	char toascii(unsigned char c); MACRO
	Convert c from 8-bit value to 7-bit ASCII.

tolower - character classification - #include <ctype.h>  
	char _tolower(unsigned char c); MACRO
	char tolower(unsigned char c); MACRO
	Convert c from upper case to lower case.

toupper - character classification - #include <ctype.h>  
	char _toupper(unsigned char c); MACRO
	char toupper(unsigned char c); MACRO
	Convert c from lower case to upper case.


float.h
/*--------------------------------------------------------------
__uchar2fs - IEEE single precision math - #include <float.h> 
	float __uchar2fs (unsigned char uc); INTERNAL
	Convert an unsigned char to float.

__schar2fs - IEEE single precision math - #include <float.h>   
	float __schar2fs (signed char sc); INTERNAL
	Convert a signed char to float.

__uint2fs - IEEE single precision math - #include <float.h>   
 	float __uint2fs (unsigned int ui); INTERNAL
	Convert an unsigned int to float.

__sint2fs - IEEE single precision math - #include <float.h>   
	float __sint2fs (signed int si); INTERNAL
	Convert a signed int to float.

__ulong2fs - IEEE single precision math - #include <float.h>   
	float __ulong2fs (unsigned long ul); INTERNAL
	Convert an unsigned log to float.

__slong2fs - IEEE single precision math - #include <float.h>   
	float __slong2fs (signed long sl); INTERNAL
	Convert a signed long to float.

__fs2uchar - IEEE single precision math - #include <float.h>   
	unsigned char __fs2uchar (float f); INTERNAL
	Convert a float to unsigned char;

__fs2schar - IEEE single precision math - #include <float.h>   
	signed char __fs2schar (float f); INTERNAL
	Convert a float to signed char;

__fs2uint - IEEE single precision math - #include <float.h>   
	unsigned int __fs2uint (float f); INTERNAL
	Convert a float to unsigned int;

__fs2sint - IEEE single precision math - #include <float.h>   
	signed int __fs2sint (float f); INTERNAL
	Convert a float to signed int;

__fs2ulong - IEEE single precision math - #include <float.h>   
	unsigned long __fs2ulong (float f); INTERNAL
	Convert a float to unsigned long;

__fs2slong - IEEE single precision math - #include <float.h>   
	signed long __fs2slong (float f); INTERNAL
	Convert a float to signed long.

__fsadd - IEEE single precision math - #include <float.h>   
	float __fsadd (float a1, float a2); INTERNAL
	Add two floats.

__fssub - IEEE single precision math - #include <float.h>   
	float __fssub (float a1, float a2); INTERNAL
	Subtract two floats.

__fsmul - IEEE single precision math - #include <float.h>   
	float __fsmul (float a1, float a2); INTERNAL
	Multiply two floats.

__fsdiv - IEEE single precision math - #include <float.h>   
	float __fsdiv (float a1, float a2); INTERNAL
	Divide two floats.

__fslt - IEEE single precision math - #include <float.h>   
	char __fslt (float a1, float a2); INTERNAL
	Compare two floats lt.

__fseq - IEEE single precision math - #include <float.h>   
	char __fseq (float a1, float a2); INTERNAL
	Compare two floats eq.

__fsneq - IEEE single precision math - #include <float.h>   
	char __fseq (float a1, float a2); INTERNAL  missing in float.h 
	Compare two floats neq.

__fsgt - IEEE single precision math - #include <float.h>   
	char __fsgt (float a1, float a2); INTERNAL  typo in float.h 
	Compare two floats gt.


malloc.h
/*---------------------------------------------------------------------------
malloc - memory allocation - #include <malloc.h>   
	void *malloc (unsigned int);
	void xdata * malloc (unsigned int );
	Allocate a block of memory from the heap;

free - memory allocation - #include <malloc.h>   
	void free (void *p);
	void free (void xdata *  p);
	Return previously allocated memory to the heap.

init_dynamic_memory - memory allocation - #include <malloc.h> -  
	void init_dynamic_memory (MEMHEADER xdata *  , unsigned int );
	Initialize the memory allocation system.


math.h
/*--------------------------------------------------------------------------
sinf - ANSI C math - #include <math.h>  
	float sinf (const float x);
	Compute sine of x.

sinhf - ANSI C math - #include <math.h>  
	float sinhf (const float x);
	Compute hyperbolic sine of x.

cosf - ANSI C math - #include <math.h>  
	float cosf (const float x);
	Compute cosine of x.

coshf - ANSI C math - #include <math.h>  
	float coshf (const float x);
	Compute hyberbolic cosine of x.

tanf - ANSI C math - #include <math.h>  
	float tanf (const float x);
	Compute tangent of x.

tanhf - ANSI C math - #include <math.h>  
	float tanhf (const float x);
	Compute hyberbolic tangent of x.

cotf - ANSI C math - #include <math.h>  
	float cotf (const float x);
	Compute cotangent of x.

expf - ANSI C math - #include <math.h>  
	float expf (const float x);
	Compute e to the x power.

logf - ANSI C math - #include <math.h>  
	float logf (const float x);
	Compute log base e of x.

log10f - ANSI C math - #include <math.h>  
	float log10f (const float x);
	Compute log base 10 of x.

powf - ANSI C math - #include <math.h>  
	float pow (float x, float y);
	Compute x to y power.

sqrtf - ANSI C math - #include <math.h>  
	float sqrtf (const float x);
	Compute the square root of x.

fabsf - ANSI C math - #include <math.h>  
	float fabsf (const float x);
	Compute the absolute value of x.

frexpf - ANSI C math - #include <math.h>  
	float frexpf (const float x, int *pw2);
	Split x in to mantissa and exponent parts.

ldexpf - ANSI C math - #include <math.h>  
	float ldexpf (const float x, const int pw2);
	Combine mantissa and exponent parts of a float.

ceilf - ANSI C math - #include <math.h>  
	float ceilf (float x);
	Find the smallest integer not less than x.

floorf - ANSI C math - #include <math.h>  
	float floorf (float x);
	Find the largest integer not more than x.

modff - ANSI C math - #include <math.h>  
	float modff (float x, float * y);
	Split x in to integer and fractional parts.

abs  - ANSI C math - #include <math.h>
       int abs( int i);
       abs returns the absolute value of <[i]> (also called the magnitude
       of <[i]>).  That is, if <[i]> is negative, the result is the opposite
       of <[i]>, but if <[i]> is nonnegative the result is <[i]>.

labs - ANSI C math - #include <math.h>
       long labs(longx);
       labs returns the absolute value of <[i]> (also called the magnitude
       of <[i]>).  That is, if <[i]> is negative, the result is the opposite
       of <[i]>, but if <[i]> is nonnegative the result is <[i]>.



stdio.h
/*-------------------------------------------------------------------------
printf - standard character I/O - #include <stdio.h>  
	int printf (const char *,...);

puts - standard character I/O - #include <stdio.h>  
	int puts(const char *);

gets - standard character I/O - #include <stdio.h>  
	char *gets(char *);

getchar - standard character I/O - #include <stdio.h>  
	char getchar(void);

putcharf - standard character I/O - #include <stdio.h>  
	void putcharf(char);


stdlib.h
/*-------------------------------------------------------------------------
atof - General purpose standard C library - #include <stdlib.h>
       float atof (char *);
       Parses string interpreting its content as a floating point number and returns a             value of type float. 

atoi - General purpose standard C library - #include <stdlib.h>
       int atoi (char *);
       Parses string interpreting its content as a number and returns an int value. 
	

atol - General purpose standard C library - #include <stdlib.h>
       long atol (char *);
       Parses string interpreting its content as a number and returns a long value. 


toint - General purpose standard C library - #include <stdlib.h>
	int toint (char *);
	convert a hex value to integer

_ltoa - General purpose standard C library - #include <stdlib.h>
        void _ltoa(unsigned long, char*, unsigned char);
	Convert long integer value to string

_ultoa - General purpose standard C library - #include <stdlib.h>
	 void _ultoa(unsigned long, char*, unsigned char);
	 Convert unsigned long integer to string

_itoa  - General purpose standard C library - #include <stdlib.h>
	 void _itoa(unsigned int, char*, unsigned char);
	 convert integer to string		


string.h
/*-------------------------------------------------------------------------
strcpy - string manipulation - #include <string.h>  
	char *strcpy (char * d, char * s);
	Copy the nul terminated source string s to the destination d.

strncpy - string manipulation - #include <string.h>  
	char *strncpy(char * d, char * s, int n);
	Copy the nul terminated source string s to the destination d but
	do not copy more than n characters even if this causes d to not
	be nul terminated.

strcat - string manipulation - #include <string.h>  
	char *strcat (char * front, char * back);
	Copy the nul terminated string back to the end of the nul terminated
	string front, overwriting the nul and creating a concatenation of
	the two with a single trailing nul terminator.

strncat - string manipulation - #include <string.h>  
	char *strncat(char * front, char * back, int n);
	Copy the nul terminated string back to the end of the nul terminated
	string front, overwriting the nul and creating a concatenation of
	the two, but do not copy more than n characters, even if this causes
	the result to no be nul terminated.

strcmp - string manipulation - #include <string.h> 
	int   strcmp (char * asrc, char * adst);
	Compare two nul terminated strings asrc and adst.  Return a value < 0 if asrc
	is less than adst.  Return a value > 0 if asrc is greater than adst.  Otherwise
	return 0.

strncmp - string manipulation - #include <string.h>  
	int   strncmp(char * asrc, char * adst, int n);
	Compare two nul terminated strings asrc and adst but do not check more than n
	characters.  Return a value < 0 if asrc is less than adst.  Return a value > 0
	if asrc is greater than adst. Otherwise return 0.

strchr - string manipulation - #include <string.h>  
	char *strchr (char * string, char ch);
	Return a pointer to the first occurance of the character ch is string
	or a NULL pointer if not found.

strrchr - string manipulation - #include <string.h>  
	char *strrchr(char * string, char ch);
	Return a pointer to the last occurance of the character ch is string
	or a NULL pointer if not found.

strspn - string manipulation - #include <string.h>  
	int   strspn (char *, char *);

strcspn - string manipulation - #include <string.h>  
	int   strcspn(char *, char *);

strpbrk - string manipulation - #include <string.h>  
	char *strpbrk(char *, char *);

strstr - string manipulation - #include <string.h>  
	char *strstr (char *, char *);

strlen - string manipulation - #include <string.h> 
	int   strlen (char *  );

strtok - string manipulation - #include <string.h> 
	char *strtok (char *, char *);

memcpy - string manipulation - #include <string.h>  
	void *memcpy (void *, void *, int );

memcmp - string manipulation - #include <string.h>  
	int   memcmp (void *, void *, int );

memset - string manipulation - #include <string.h>  
	void *memset (void *, unsigned char  , int );

/*--------------------------------------------------------------------------------